import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);
const prodctTable = (resolve) => {
    import('../components/prodctTable').then((module) => {
        resolve(module)
    }).catch((err) => {
        // on cancel
    });
}
const prodctTable2 = (resolve) => {
    import('../components/prodctTable2').then((module) => {
        resolve(module)
    }).catch((err) => {
        // on cancel
    });
}
const routes = [{
        path: "/",
        name: "Home",
        component: prodctTable
    },
    {
        path: "/product/table",
        name: "productTable2",
        component: prodctTable2
    },
];

const router = new VueRouter({
    routes
});

export default router;